import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? 'api/galaxy/std' : '/std'
export const getUserList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/signup-list',
    method: 'post',
    data
  })
// 用户详情
export const getUserDetail = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/view',
    method: 'post',
    data
  })
// 用户附件列表
export const getUserAppendix = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/attachment-list',
    method: 'post',
    data
  })
// 用户访问列表
export const getUserAccessList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/access-list',
    method: 'post',
    data
  })
// 用户授信列表
export const getUserCreditList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/credit-list',
    method: 'post',
    data
  })
// 用户借款列表
export const getUserLoanList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/loan-list',
    method: 'post',
    data
  })
// 用户借款列表
export const getUserRepayList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/user/repay-list',
    method: 'post',
    data
  })
